const mongoose = require("mongoose");
const Schema = mongoose.Schema;

// Create Schema
const CashReturnSchema = new Schema(
  {
    photo: {
      type: String,
      required: true,
    },
    time: {
      type: String,
      required: true,
    },
    score: {
      type: String,
      required: true,
    },
    fine: {
      type: String,
      required: true,
    },
    service: {
      type: String,
    },
    locations: {
      type: String,
    },
    reason: {
      type: String,
      required: true,
    },
    status: {
      type: String,
      required: true,
    },
    date: {
      type: Date,
      default: Date.now,
    },
  },
  { versionKey: false }
);

module.exports = CashReturn = mongoose.model("returncash", CashReturnSchema);
